<!DOCTYPE html>
	<html>
	<head>
		<title>{$site_seo_title} {$site_name}</title>
		<meta name="keywords" content="{$site_seo_keywords}" />
		<meta name="description" content="{$site_seo_description}">
		<tc_include file="Public:head" />
		<link href="__TMPL__Public/css/slippry/slippry.css" rel="stylesheet">
		<style>
			.caption-wraper{position: absolute;left:50%;bottom:2em;}
			.caption-wraper .caption{
			position: relative;left:-50%;
			background-color: rgba(0, 0, 0, 0.54);
			padding: 0.4em 1em;
			color:#fff;
			-webkit-border-radius: 1.2em;
			-moz-border-radius: 1.2em;
			-ms-border-radius: 1.2em;
			-o-border-radius: 1.2em;
			border-radius: 1.2em;
			}
			@media (max-width: 767px){
				.sy-box{margin: 12px -20px 0 -20px;}
				.caption-wraper{left:0;bottom: 0.4em;}
				.caption-wraper .caption{
				left: 0;
				padding: 0.2em 0.4em;
				font-size: 0.92em;
				-webkit-border-radius: 0;
				-moz-border-radius: 0;
				-ms-border-radius: 0;
				-o-border-radius: 0;
				border-radius: 0;}
			}
		</style>
	</head>
<body class="body-white">
<tc_include file="Public:nav" />

<php>
$home_slides=sp_getslide("portal_index");

$home_slides=empty($home_slides)?$default_home_slides:$home_slides;
</php>
<ul id="homeslider" class="unstyled">
	<foreach name="home_slides" item="vo">
	<li>
		<div class="caption-wraper">
			<div class="caption">{$vo.slide_name}</div>
		</div>
		<a href="{$vo.slide_url}"><img src="{:sp_get_asset_upload_path($vo['slide_pic'])}" alt=""></a>
	</li>
	</foreach>
</ul>
<div class="container">

	<!-- 产品中心 -->
	<div>
		<h1 class="text-center">产品中心</h1>
		<h4 class="text-classification"><a href="/index.php?g=&m=article&a=index&id=27">饲料添加剂</a></h4>
	</div> 
	
	<php>
		$lastnews=sp_sql_posts("cid:9;field:post_title,post_excerpt,post_content,tid,smeta;order:listorder asc;limit:1;"); 
	</php>
	<div class="row" style="background-color:#FFBD0C;border-radius:25px;">
		<foreach name="lastnews" item="vo">
		<php>$smeta=json_decode($vo['smeta'],true);</php>
		<!-- <div class="span3">
			<div class="tc-gridbox" style="border: solid 0px #ddd;">
				<div class="header">
					<div class="item-image" style="background:#FFBD0C;">
						<a href="{:leuu('article/index',array('id'=>$vo['tid'],'cid'=>$vo['term_id']))}">
						<img src="/themes/allwin_zh_cn/Public/images/ultrahog.jpg" class="img-responsive img-thumbnail" alt="{$vo.post_title}" style="margin-top: 18px;" />
						</a>
					</div>
				</div>
			</div>
		</div> -->
		<div class="span4">
			<div class="tc-gridbox" style="border: solid 0px #ddd;margin-top:15px;">
				<div class="header">
					<div class="item-image">
						<a href="{:leuu('article/index',array('id'=>$vo['tid'],'cid'=>$vo['term_id']))}">
							<if condition="empty($smeta['thumb'])"> 
								<img style="margin-bottom: 0px !important;" src="__TMPL__Public/images/default_tupian1.png" class="img-responsive" alt="{$vo.post_title}"/>
							<else /> 
								<img src="{:sp_get_asset_upload_path($smeta['thumb'])}" class="img-responsive img-thumbnail" alt="{$vo.post_title}" />
							</if>
						</a>
					</div>
					<!-- <h3><a href="{:leuu('article/index',array('id'=>$vo['tid'],'cid'=>$vo['term_id']))}">{$vo.post_title}</a></h3> -->
				</div>
			</div>
		</div>
		<div class="span8 altrahog">
			<!-- <p>{:msubstr($vo['post_content'],1120,850)}</p> -->
			<p>1）奥特壮：猪用营养动力因子，是191个氨基酸的多肽。<br/>               
			2）来源：工程菌发酵代谢产物（分子量：43,000道尔顿左右，肠道不吸收）。<br/>
			3）作用：对商品猪激发IGF-I的分泌与促全身组织细胞增长（体积）作用；对怀孕母猪激发IGF-I、IGF-II的分泌与促胚胎组织细胞增生（数量）作用。</p>
		</div>
		</foreach>
	</div>

	<!-- <div>
		<h4 class="text-classification">化药系列</h4>
	</div> 
	
	<php>
		$lastnews=sp_sql_posts("cid:$portal_index_lastnews;field:post_title,post_excerpt,tid,smeta;order:listorder asc;limit:8;"); 
	</php>
	<div class="row">
		<foreach name="lastnews" item="vo">
		<php>$smeta=json_decode($vo['smeta'],true);</php>
		<div class="span3">
			<div class="tc-gridbox">
				<div class="header">
					<div class="item-image">
						<a href="{:leuu('article/index',array('id'=>$vo['tid'],'cid'=>$vo['term_id']))}">
							<if condition="empty($smeta['thumb'])"> 
								<img src="__TMPL__Public/images/default_tupian1.png" class="img-responsive" alt="{$vo.post_title}"/>
							<else /> 
								<img src="{:sp_get_asset_upload_path($smeta['thumb'])}" class="img-responsive img-thumbnail" alt="{$vo.post_title}" />
							</if>
						</a>
					</div>
					<h3><a href="{:leuu('article/index',array('id'=>$vo['tid'],'cid'=>$vo['term_id']))}">{$vo.post_title}</a></h3>
					<hr>
				</div>
				<div class="body">
					<p><a href="{:leuu('article/index',array('id'=>$vo['tid'],'cid'=>$vo['term_id']))}">{:msubstr($vo['post_excerpt'],0,32)}</a></p>
				</div>
			</div>
		</div>
		</foreach>
	</div> -->
	<!-- 最新资讯 -->
		<div>
			<h1 class="text-center"><a href="/index.php?m=list&a=index&id=6">最新资讯<a></h1>
		</div>
		<!-- 格式一 -->
		<!-- <div class="row">
				<php>
					$posts=sp_sql_posts('cid:6;field:post_title,post_excerpt,post_content,post_modified,tid;limit:3;order:post_modified desc;');
				</php>
				<foreach name="posts" item="vo">
				<div class="span4">
					<h2 class="font-large nospace"><i class="fa"></i><a href="{:leuu('article/index',array('id'=>$vo['tid']))}">{$vo.post_title}</a></h2>
					<p>{:msubstr($vo['post_excerpt'],0,100)}</p>
					<p>{$vo.post_modified}</p>
				</div>
				</foreach>
			</div> -->
		<php>
		$lastnews=sp_sql_posts("cid:6;order:post_modified desc;limit:4;");
		</php>
		<div class="row">
			<foreach name="lastnews" item="vo">
			<php>$smeta=json_decode($vo['smeta'],true);</php>
			<div class="span3">
				<div class="tc-gridbox">
					<div class="header">
						<div class="item-image">
							<a href="{:leuu('article/index',array('id'=>$vo['tid'],'cid'=>$vo['term_id']))}">
								<if condition="empty($smeta['thumb'])"> 
									<img src="__TMPL__Public/images/default_tupian1.png" class="img-responsive" alt="{$vo.post_title}"/>
								<else /> 
									<img src="{:sp_get_asset_upload_path($smeta['thumb'])}" class="img-responsive img-thumbnail" alt="{$vo.post_title}" />
								</if>
							</a>
						</div>
						<h3><a href="{:leuu('article/index',array('id'=>$vo['tid'],'cid'=>$vo['term_id']))}">{$vo.post_title}</a></h3>
						<hr>
					</div>
					<div class="body">
						<p><a href="{:leuu('article/index',array('id'=>$vo['tid'],'cid'=>$vo['term_id']))}">{:msubstr($vo['post_excerpt'],0,32)}</a></p>
						<p>{$vo.post_modified}</p>
					</div>
				</div>
			</div>
			</foreach>
		</div>

	<!-- 推广之星 -->
		<div>
			<h1 class="text-center"><a href="/index.php?m=list&a=index&id=11">推广之星</a></h1>
		</div>
		<div class="row">
			<php>
				$posts=sp_sql_posts('cid:11;field:post_title,post_excerpt,post_content,smeta,post_modified,tid;order:post_modified desc;limit:4;');
			</php>
			<foreach name="posts" item="vo">
			<php>$smeta=json_decode($vo['smeta'],true);</php>
			<div class="span3">
				<h4 class="font-large nospace"><i class="fa"></i><a href="{:leuu('article/index',array('id'=>$vo['tid'],'cid'=>$vo['term_id']))}">{$vo.post_title}</a></h4>
				<div class="item-image">
					<a href="{:leuu('article/index',array('id'=>$vo['tid'],'cid'=>$vo['term_id']))}">
						<if condition="empty($smeta['thumb'])"> 
							<img src="__TMPL__Public/images/default_tupian1.png" class="img-responsive" alt="{$vo.post_title}"/>
						<else /> 
							<img src="{:sp_get_asset_upload_path($smeta['thumb'])}" class="img-responsive img-thumbnail" alt="{$vo.post_title}" />
						</if>
					</a>
				</div>
				<p>{:msubstr($vo['post_excerpt'],0,50)}</p>
				<p>{$vo.post_modified}</p>
			</div>
			</foreach>
		</div>

</div>
<tc_include file="Public:footer"/>

<tc_include file="Public:scripts"/>
<script src="__TMPL__Public/js/slippry.min.js"></script>
<script>
$(function() {
	var demo1 = $("#homeslider").slippry({
		transition: 'fade',
		useCSS: true,
		captions: false,
		speed: 1000,
		pause: 3000,
		auto: true,
		preload: 'visible'
	});
});
</script>
{:hook('footer_end')}
</body>
</html>
